package repository;

import javax.inject.Inject;

import io.reactivex.FlowableTransformer;
import io.reactivex.android.schedulers.AndroidSchedulers;
import io.reactivex.schedulers.Schedulers;
import retrofit2.Retrofit;
import retrofit2.mock.MockRetrofit;

public class BaseRepository  {

    Retrofit retrofit;
    MockRetrofit mockRetrofit;

        public  <T> FlowableTransformer<T, T> ioTransformer() {
        return upstream -> upstream
                .subscribeOn(Schedulers.io())
                .observeOn(AndroidSchedulers.mainThread())
                ;

    }
}
